package oop3;

/**
 * @author oldliu
 * @since 1.0
 */
public class StuArray {
    public static void main(String[] args) {
        //对象数组
        Student[] s = new Student[30];
        s[0] = new Student();
        System.out.println(s[0]);
        s[0].name = "张麻子";
        s[0].showInfo();
        //s[1].showInfo();

        Student[] s2 = new Student[]{};

        Student[] s3 = {new Student(), new Student(), new Student(), new Student(), new Student()};
        s3[0].name="黄四郎";
        s3[0].java=88;
        s3[0].sql=84;
        s3[0].csharp=81;
    }
}
